package abstructfactory.service.factory.impl;

import abstructfactory.service.ChinaProductService;
import abstructfactory.service.USAProductService;
import abstructfactory.service.factory.AbstractFactory;
import abstructfactory.service.impl.ChinaBanZImpl;
import abstructfactory.service.impl.USABaoMaImpl;

/**
 * @Author liangbaigao
 * @Date 2023/9/26 9:13
 */
public class CarFactory implements AbstractFactory {

    @Override
    public ChinaProductService getChinaProduct() {
        return new ChinaBanZImpl();
    }

    @Override
    public USAProductService getUSAProduct() {
        return new USABaoMaImpl();
    }
}
